import 'package:freezed_annotation/freezed_annotation.dart';
import 'dart:convert';

part 'my_edit_request.g.dart';
part 'my_edit_request.freezed.dart';

@freezed
class MyEditRequest with _$MyEditRequest {
  const factory MyEditRequest({
    @JsonKey(name: 'token') required String token,
    @JsonKey(name: 'field') required String field,
    @JsonKey(name: 'nick_name') required String nick_name,
    @JsonKey(name: 'face') required String face,
    @JsonKey(name: 'birthday') required String birthday,
    @JsonKey(name: 'gender') required String gender,
  }) = _MyEditRequest;

  factory MyEditRequest.fromJson(Map<String, dynamic> json) =>
      _$MyEditRequestFromJson(json);
}
